<?php
/**
 * 设置用户状态
 *  * @return array
 *  *
 * Author: chain
 * Date: 2020/10/15 10:51
 */


namespace App\Http\Request\System\User;


use App\Common\Utils\BaseRequest;

class SetuserstatusRequest extends BaseRequest
{

    public function rules() {
        $rules = [
            'id' => 'required',
            'status' => 'required|in:1,2',
        ];

        return $rules;
    }

    public function messages() {
        $messages = [
            'id.required' => 'id不能为空',
            'status.required' => 'status不能为空',
            'status.in'  => 'status必须为1或2'

        ];

        return $messages;
    }
}
